﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PSE.AuditLogging.LogEntry
{
    [Serializable]
    public class LogEntryPackage
    {
        public string Id
        {
            get;
            private set;
        }

        public BaseLogEntry Body
        {
            get;
            set;
        }

        public string BodySignature
        {
            get;
            set;
        }

        public LogEntryPackage(BaseLogEntry body, string signature)
        {
            this.Body = body;
            this.BodySignature = signature;
            //gerar um id unico para identificar o pacote de log
            this.Id = Environment.MachineName + ":" + System.Guid.NewGuid().ToString();
        }

        private LogEntryPackage()
        {
        }
    }
}
